//
//  BackBtn.m
//  QRMaster
//
//  Created by myApple on 16/1/4.
//  Copyright (c) 2016年 myApple. All rights reserved.
//

#import "BackBtn.h"

@implementation BackBtn

+(UIButton *)initWithFrame:(CGRect)rect withImage:(NSString *)imageName
{
    UIButton * btn = [UIButton buttonWithType:UIButtonTypeCustom];
    btn.frame = rect;
    if (imageName != nil) {
        UIImageView * btnImgView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 8, 14, 22)];
        btnImgView.image = [UIImage imageNamed:imageName];
        [btn addSubview:btnImgView];
    }
    return btn;
}

@end
